﻿using System;
using System.Collections.Generic;
using LitJson;
using OestsCommon;
using OestsCommon.Model;
using OestsCommon.TcpNet;
using OestsDataBase;
using OestsServer.Managers;
using OestsServer.Net;
using OSESServer;

namespace OestsServer.Handlers
{
	public class DeleteRoomHandler : HandlerBase
	{
		public override PacketKey PKey
		{
			get
			{
				return PacketKey.DeleteRoom;
			}
		}

		public override void Execute(ClientChannel client, Request packet)
		{
			//int roomId = int.Parse(packet.DataStr);

			//foreach (var room in RoomManager.Instance.RoomList)
			//{
			//	if (room.RoomId == roomId)
			//	{
			//		ResponsePacket = new Response(packet);
			//		ResponsePacket.DataObject = room.RoomId;
   //                 room.BroadcastToAllMembers(ResponsePacket);
			//		RoomManager.Instance.RoomList.Remove(room);

			//		//广播房间列表信息
			//		BroadcastRoomList(room.Task.Id);
			//		break;
			//	}
			//}
		}
	}
}
